from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^admin/list_channel$', views.list_channel, name='list_channel'),  # 渠道列表
    url(r'^admin/add_channel$', views.add_channel, name='add_channel'),  # 添加渠道
    url(r'^admin/edit_channel/(\d+)$', views.edit_channel, name='edit_channel'),  # 修改渠道
    url(r'^admin/login$', views.login, name='login'),  # 登录
    url(r'^admin/logout$', views.logout, name='logout'),  # 登录
]

urlpatterns += [
    url(r'admin/channel_product_list/(\d+)$', views.channel_product_list, name="channel_product_list"),  # 渠道产品列表
    url(r'admin/edit_channel_product/(\d+)$', views.edit_channel_product, name="edit_channel_product"),  # 渠道产品修改
    url(r'admin/add_channel_product/(\d+)$', views.add_channel_product, name="add_channel_product"),  # 渠道产品添加
]

urlpatterns += [
    url(r'admin/channel_add_price/(\d+)$', views.channel_add_price, name="channel_add_price"),  # 渠道添加价格
    url(r'admin/channel_price_list$', views.channel_price_list, name="channel_price_list"),  # 渠道价格列表
]
